package com.leyou.item.inter.pojo;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @数表名称 tb_spec_group
 * @开发日期 2020-03-07
 */
@Data
@Table(name="tb_spec_group")
@ApiModel(value = "SpecGroup",description = "结果类")
public class SpecGroup implements Serializable {
    
    /** 主键 (主健ID) */
    @Id
    @Column(name="id")
    @ApiModelProperty(value = "商品规格组id", name = "id")
    private Long id;

    /** 商品分类id，一个分类下有多个规格组 */
    @Column(name="cid")
    @ApiModelProperty(value = "商品分类id", name = "cid")
    private Long cid;

    /** 规格组的名称 */
    @Column(name="name")
    @ApiModelProperty(value = "规格组的名称", name = "name")
    private String name;

    /** 该组下的所有规格参数集合 */
    @Transient
    private List<SpecParam> params;

    private static final long serialVersionUID = 1L;
}